const columns = [
  { colKey: 'serial-number', align: 'center', title: '序号' },
  { colKey: 'applicant', align: 'center', title: '申请人', width: '100' },
  { colKey: 'generateType', title: '生成方式', align: 'center', cell: (h, { row }) => (row.generateType == 1 ? '压缩包' : '项目内') },
  {
    title: '操作',
    align: 'center',
    cell: (h, { row }) => {
      return h(TDesign.Space, {}, [
        h(TDesign.Link, { theme: 'primary', onClick: () => onEdit(row) }, '编辑'),
        h(TDesign.Button, { theme: 'primary', onClick: () => onEdit(row) }, '编辑'),
        h(
          TDesign.Dropdown,
          {
            minColumnWidth: 90,
            placement: 'bottom',
            options: [
              { content: '配置', onClick: () => onDelete(row) },
              { content: '生成', onClick: () => onDelete(row) },
              { content: '删除', theme: 'error', onClick: () => onDelete(row) },
            ],
          },
          h(
            TDesign.Button,
            { theme: 'primary', variant: 'outline' },
            {
              default: () => '更多操作',
              suffix: () => h('i', { class: 'layui-icon layui-icon-down text-xs' }),
            }
          )
        ),
      ]);
    },
  },
];